package com.kgc.api.goods;

import com.kgc.bean.GoodsCarinfo;
import com.kgc.bean.User;
import com.kgc.util.ReturnResult;

import java.util.Map;

public interface CarApi {

    //1.加入购物车功能
    ReturnResult<Map<String, Object>> addToShoppingCart(GoodsCarinfo goodsCarinfo, User user, String token,String goodsId,Integer businessid);
    //2.查看购物车功能

    ReturnResult<Map<String, Object>> checkTheShoppingCart(User user,String goodsId,Integer businessid);
    //3.删除购物车某个商品

    ReturnResult<Map<String, Object>> deleteAnItemInTheShoppingCart(String goodsId, Integer businessid, User user);

    //4.清空购物车

    ReturnResult<Map<String, Object>> emptyShoppingCart(User user,String goodsId,Integer businessid);

}
